import request from '@/utils/request'

// 查询轮播列分类列表
export function listSlideData(query) {
  return request({
    url: '/smartservice/slideData/list',
    method: 'get',
    params: query
  })
}

// 查询轮播列分类详细
export function getSlideData(slideDataId) {
  return request({
    url: '/smartservice/slideData/' + slideDataId,
    method: 'get'
  })
}

// 新增轮播列分类
export function addSlideData(data) {
  return request({
    url: '/smartservice/slideData',
    method: 'post',
    data: data
  })
}

// 修改轮播列分类
export function updateSlideData(data) {
  return request({
    url: '/smartservice/slideData',
    method: 'put',
    data: data
  })
}

// 删除轮播列分类
export function delSlideData(slideDataId) {
  return request({
    url: '/smartservice/slideData/' + slideDataId,
    method: 'delete'
  })
}

// 导出轮播列分类
export function exportSlideData(query) {
  return request({
    url: '/smartservice/slideData/export',
    method: 'get',
    params: query
  })
}